package com.crazy.entity.sys;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 系统日志 entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pub_sys_log")
@SuppressWarnings("serial")
public class PubSysLog implements java.io.Serializable {

	private String logId;
	private String loginUser;
	private String ipAddress;
	private String hostName;
	private String requestUri;
	private String requestUrl;
	private String queryString;
	private String methodName;
	private Date accessTime;
	private Long processTime;
	private String processResult;
	private String exceptionInfo;

	/** default constructor */
	public PubSysLog() {
	}

	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "LOG_ID", unique = true, nullable = false, length = 100)
	public String getLogId() {
		return this.logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	@Column(name = "LOGIN_USER", length = 500)
	public String getLoginUser() {
		return this.loginUser;
	}

	public void setLoginUser(String loginUser) {
		this.loginUser = loginUser;
	}

	@Column(name = "IP_ADDRESS", length = 100)
	public String getIpAddress() {
		return this.ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	@Column(name = "HOST_NAME", length = 100)
	public String getHostName() {
		return this.hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	@Column(name = "REQUEST_URI", length = 1000)
	public String getRequestUri() {
		return this.requestUri;
	}

	public void setRequestUri(String requestUri) {
		this.requestUri = requestUri;
	}

	@Column(name = "REQUEST_URL", length = 2000)
	public String getRequestUrl() {
		return this.requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

	@Column(name = "QUERY_STRING", length = 2000)
	public String getQueryString() {
		return this.queryString;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

	@Column(name = "METHOD_NAME", length = 1000)
	public String getMethodName() {
		return this.methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	@Column(name = "ACCESS_TIME", length = 11)
	public Date getAccessTime() {
		return this.accessTime;
	}

	public void setAccessTime(Date accessTime) {
		this.accessTime = accessTime;
	}

	@Column(name = "PROCESS_TIME", precision = 18, scale = 0)
	public Long getProcessTime() {
		return this.processTime;
	}

	public void setProcessTime(Long processTime) {
		this.processTime = processTime;
	}

	@Column(name = "PROCESS_RESULT", length = 2000)
	public String getProcessResult() {
		return this.processResult;
	}

	public void setProcessResult(String processResult) {
		this.processResult = processResult;
	}

	@Column(name = "EXCEPTION_INFO", length = 2000)
	public String getExceptionInfo() {
		return this.exceptionInfo;
	}

	public void setExceptionInfo(String exceptionInfo) {
		this.exceptionInfo = exceptionInfo;
	}

}